﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPF_for_Auth.PageS.RBAC
{
    /// <summary>
    /// Page_PageManager.xaml 的交互逻辑
    /// </summary>
    public partial class Page_PageManager : UserControl
    {
        public Page_PageManager()
        {
            InitializeComponent();
            this.DataContext = MvvmLoad.mvvm; // 设置数据上下文为 MvvmLoad 的实例
        }

        private void Button_Detail_Click(object sender, RoutedEventArgs e)
        {
            var control = (sender as Button);
            var tag = control.Tag;
            MessageBox.Show("此功能尚未实现！", "提示", MessageBoxButton.OK, MessageBoxImage.Information);

            MvvmLoad.mvvm.App_PageStatus.EditID = tag.ToString();
            MvvmLoad.mvvm.App_PageStatus.ChoosePage("PageManager_Detail_Edit");
        }
    }
}
